#ifndef CONSTANTS_H_
#define CONSTANTS_H_

#include <sstream>
#include <log4cpp/Category.hh>


#define RECV_SIZE 1024
#define SERVER_LOGGER "serverthread"

#define LOG_ERROR(msg) { \
\
    std::stringstream ss83893; \
    ss83893<<msg << " : "<<__FILE__ <<":"<<__LINE__;  \
    logger.error(ss83893.str()); \
}

#define LOG_INFO(msg) { \
\
    std::stringstream ss838937983; \
    ss838937983<<msg << " : "<<__FILE__ <<":"<<__LINE__;  \
    logger.info(ss838937983.str()); \
}

#define LOG_DEBUG(msg) { \
\
    std::stringstream ss838937983123291; \
    ss838937983123291<<msg << " : "<<__FILE__ <<":"<<__LINE__;  \
    logger.debug(ss838937983123291.str()); \
}

namespace Constants {

void setThreadID(std::string& threadID);

}

#endif// CONSTANTS_H_
